# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=irpas
pkgver=0.10
pkgrel=7
groups=('blackarch' 'blackarch-exploitation')
pkgdesc='Internetwork Routing Protocol Attack Suite.'
arch=('x86_64' 'aarch64')
url='http://phenoelit-us.org/irpas'
license=('custom:unknown')
depends=('libpcap')
source=("http://www.phenoelit.org/$pkgname/${pkgname}_${pkgver}.tar.gz")
sha512sums=('256d94a327540ffc7de85c4f348e6e973af5e96654a0d04baf698ba5775ecf355d752886afa9a3947e7987b739c3ef9f305e47b706ba354360733a8254720582')

build() {
  make
}

package() {
  install -dm 755 "$pkgdir/usr/bin"

  for bin in dhcpx itrace tctrace ass file2cable dfkaa cdp hsrp icmp_redirect \
    igrp irdp irdpresponder netenum netmask protos timestamp ; do
    install -m 755 "$bin" "$pkgdir/usr/bin/$pkgname-$bin"
  done
}

